#pragma once

#include <QObject>
#include "trainer.h"
#include <QJsonObject>
#include <QStringList>

class Trainer;
class Bot : public QObject
{
	Q_OBJECT

	typedef struct  _OPTION {
		QString name;
		QString age;
		QString gender;
		QString description;

	}OPTION;
	enum { Male, Female };

public:

	
public:
	Bot(QObject *parent);
	~Bot();

	Bot(QString name);
	void set_trainer(Trainer trainer);
	void set_option(OPTION option);
	QList<Response::resultStruct> get_response(QString input);
	QStringList findPatterns(QString filename);
	QStringList getPatternKeys();
	void trainer(QString learnfiles);

private:
	OPTION _option;
	Trainer _trainer;
};
